package Buildings.dwelling;
import Interfaces.*;
public class DwellingFactory implements BuildingFactory {
    @Override
    public Space createSpace(double area){
        return new Flat(area);
    }
    @Override
    public Space createSpace(int rooms,double area){
        return new Flat(rooms,area);
    }
    @Override
    public Floor createFloor(int spaces){
        return new DwellingFloor(spaces);
    }
    @Override
    public Floor createFloor(Space... spaces){
        return new DwellingFloor(spaces);
    }
    @Override
    public Building createBuilding(int floorsCount,int ...spaces){
        return new Dwelling(floorsCount,spaces);
    }
    @Override
    public Building createBuilding(Floor ...floors){
        return new Dwelling(floors); 
    }
}
